package base.design.test3FactoryMethod;

import base.design.test3FactoryMethod.domain.Pizza;

public class ZClientTest {
    public static void main(String[] args) {
       PizzaStore pizzaStore=new PizzaStore();
       MilkPizzaFactory milkPizzaFactory=new MilkPizzaFactory();
       pizzaStore.setFactory(milkPizzaFactory);
        Pizza pizza = pizzaStore.getPizza();
        pizza.prepare();
    }
}
